//
//  TTXMLObject.h
//  Tint
//
//  Created by Kevin Wu on 9/5/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TTXML.h"
#import "TTXMLNode.h"


@interface NSObject (XMLObject)

+ (id)newObjectWithXMLNode:(TTXMLNode *)XMLNode;

+ (void)mapToNodeName:(NSString *)nodeName;
+ (Class)classForNodeName:(NSString *)nodeName;
+ (NSDictionary *)translationDictionary;

// key = node name, value = property name.
+ (NSDictionary *)newPropertyMap;

@end


@interface NSArray (XMLObject)
+ (NSArray *)newObjectWithXMLNode:(TTXMLNode *)XMLNode;
@end

@interface NSDictionary (XMLObject)
+ (NSDictionary *)newObjectWithXMLNode:(TTXMLNode *)XMLNode;
@end

